Repository navigation
Conversation
- AI policy now allows AI-generated content and makes guiding principles explicit - agreed upon by a majority of @coredevs at business meeting on 2026-10-26
Documentation build overview
|
|
@MDAnalysis/coredevs this PR is based on the discussed draft with all changes included and very small rearrangements and grammar fixes. Please have a look, make/request any fixes, and once you're happy please review and approve so that there's a public document that shows the org leadership's support. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5561 +/- ##
===========================================
- Coverage 93.93% 93.93% -0.01%
===========================================
Files 184 184
Lines 22680 22679 -1
Branches 3228 3228
===========================================
- Hits 21304 21303 -1
Misses 916 916
Partials 460 460 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
tylerjereddy
left a comment
There was a problem hiding this comment.
Looks pretty reasonable overall--I added a few small comments.
Making issue and PR descriptions digestible by a human seems to be a major problem in a lot of projects that have high volumes of activity.
Hiding some AI analysis in a markdown "details" block is sometimes useful in discussions, but agree with the spirit of discouraging LLM info dumps in issues and PRs.
| or for language translation purposes. **Such uses must always be declared.** | ||
| * Humans are always responsible for AI output. | ||
| * Contributors must be transparent and honest; this includes that AI-use must always be declared. | ||
| * In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs). |
There was a problem hiding this comment.
Minor suggestion might be to note "unless otherwise agreed" if that can be done in a way that isn't confusing. I've seen a few cases now where a subteam in a larger project decided that for certain tasks they would allow higher levels of automation.
In general though, this is in alignment with most other ecosystem projects.
There was a problem hiding this comment.
Yeah, that could be useful for the issue tracker at least. I can see a few cases where automation might play a role also on opening issues for example.
There was a problem hiding this comment.
I see that "limited exceptions" is already mentioned below, so definitely good to add it here too.
There was a problem hiding this comment.
I would suggest not adding the exception here for now and adding it in the future when it's necessary. The special cases being described here are going to be mostly specific to the core developers, and I would expect everything under the policy to be at the discretion of the core developers.
|
|
||
| ## Policy foundations | ||
|
|
||
| MDAnalysis allows AI generated content in code and documentation but not in forums intended for humans (with some limited exceptions). |
There was a problem hiding this comment.
Great, this should allow us to make some targeted progress in a few areas, with proper human oversight.
|
|
||
| ### Expertise and trust matter | ||
|
|
||
| The project benefits from human expertise but not from low-effort contributions and hence CoreDevelopers will exercise broad discretion in rejecting PRs outright that appear to be AI-generated slop or situations where the AI generated code is not fully understood by the contributing author. This may mean that PRs are treated differently, depending on who is submitting them. Someone who has contributed to the project over time may be trusted to use generative AI responsibly and have their PR reviewed while a new contributor’s PR is just rejected. |
There was a problem hiding this comment.
minor: this line is > 500 chars long; here and elsewhere, may be nice to break lines a little shorter for future diffs, etc.
There was a problem hiding this comment.
maybe "CoreDevelopers" -> two words?
|
|
||
| Please understand that reviewing capacity is very limited for the project, so large PRs which appear to not have the requisite understanding might not get reviewed, and eventually closed or redirected. | ||
| Understanding from authors about what code they are contributing and how it fits into the larger picture is crucial; for new features in particular, we are looking for domain expertise. | ||
| If reviewers feel there is a lack of understanding from looking at the code, PR descriptions, or just general interactions with a contributor, we reserve the right to close the PR to save time and resources. |
There was a problem hiding this comment.
We're mentioning this a lot. I suppose that's fine--we want to be clear and have something to point to if folks complain if/when PRs get closed.
There was a problem hiding this comment.
I agree it sounds a bit repetitive, but I think this is a very important point. We always tried to be a inclusive and welcoming community (and we still try hard!), so it make sense to stress these points since PR rejection might be taken badly in some cases (maybe more by the AI agents themselves than the human contributors.... It's important to stress we are welcoming and inclusive and willing to give our time to new contributors when there is genuine human effort behind, not just waste time interacting with AI through a human proxy.
There was a problem hiding this comment.
We've had enough folks reacting poorly to our decisions that being repetitive is an unfortunate need.
| Assisted-by: ChatGPT:GPT-6.1-Sol-Light | ||
|
|
||
| Assisted-by: Claude:claude-opus-5-5 Cursor | ||
| ``` |
There was a problem hiding this comment.
Interesting--I'm not a fan of this one. I usually intentionally don't have this in my commits but do disclose in the PR description, with the reasoning that it really is me who is responsible at the end of the day, just like I don't say what text editor I used.
I don't really mind it that much though.
There was a problem hiding this comment.
I think you're not the first one being ho-hum about the assisted-by tag. I originally included it because in the discussions it was clear that we wanted to know when AI was involved and that it may be useful to have this information associated with the code, not just the PR, e.g., for later analysis of where AI was used.
However, this part does not seem to be central to the AI policy, so I can also see this being shelved if more folks don't see enough value in it. It would just be good to see comments.
There was a problem hiding this comment.
I think I lean towards Tyler's stance here.
It probably makes sense for "fully AI generated" code to have a commit attribution, but then the words "assisted by" should maybe be "created by".
For true "assisted by", I think it might be better to not have it. I.e. I often use LLMs as fancy linters, so I'm assisted by them as much as I am by black or mypy.
There was a problem hiding this comment.
I don't feel strongly either way. But maybe it is a bit of an annoyance for us to check and make sure it is included in the squash-merge, so in the view that our time is limited maybe it is worth dropping and only requiring disclosure in the PR description.
There was a problem hiding this comment.
Based on the comments, I'll remove the Assisted-by tag from the draft.
| ``` | ||
|
|
||
| Fully AI-generated contributions, such as content generated by prompting a large language model (e.g. claude code or chatgpt) or produced by any agentic AI system are not permitted in MDAnalysis. | ||
| (Ask the model to generate the appropriate tag for you or provide your best guess.) |
There was a problem hiding this comment.
Hmm, I don't usually let my clanker write commits, and instead ask it to stage changes for human inspection.
There was a problem hiding this comment.
Maybe the language was not clear, the meaning was "My project requires commit log messages to include a line 'Assisted-by: MODEL:version [TOOL]'. Tell me what I need to write there."
Perhaps just rewrite as
| (Ask the model to generate the appropriate tag for you or provide your best guess.) | |
| (Provide your best guess – for instance, if you don't know which version of Claude you used, just put "Claude" for the AGENT_NAME and leave the rest blank.) |
and leave it to the people to figure out that they can ask.
There was a problem hiding this comment.
Not relevant without Assisted-by tag.
| In these limited cases of code generation, typically ranging from a single variable to a couple of lines of code, | ||
| AI assitance is deemed acceptable. However, if code generation exceeds minimal, sporadic amounts (e.g. repeated or large multi-line blocks), | ||
| it would be considered fully AI-generated and, as defined in section #1, is not acceptable. | ||
| You may use AI help to, for instance, generate a reproducer case, or format tables to communicate results. But a human has to write the overall post and be in charge of the content. |
There was a problem hiding this comment.
Perhaps also noteworthy that an issue that was discovered by an LLM or LLM-driven fuzzer may be considered low priority if the real world use case isn't fully clear. I believe NumPy recently added a section to their issue templates for the real-world relevance/how it was encountered. I forget if we already have that--a minimum viable reproducer from a fuzzer isn't quite the same thing as relevance and worthy of human attention of course.
There was a problem hiding this comment.
Is there any language you want to add/change here?
We don’t have anything like this in the PR template. It sounds like a good idea. Can you raise an issue so that we don’t forget to update?
| Any failures to comply with this policy should be reported to the MDAnalysis core developers through | ||
| our [standard communications channels](https://www.mdanalysis.org/pages/community/#ask-questions--get-help) or email to mdanalysis@numfocus.org . | ||
| The core developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions. | ||
| The Core Developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions. |
There was a problem hiding this comment.
Somewhat related: did we ever set a new PR count limit for non maintainers?
There was a problem hiding this comment.
Good reminder, I just set it to 1 for non-write access (and lifted the limit if they have at least 2 PRs merged).
RMeli
left a comment
There was a problem hiding this comment.
LGTM, I left a few comments. I don't think it was discussed before, but maybe we can add something like the following somewhere?
LLMs can generate a lot of code in seconds. Consider splitting your PRs in smaller self-contained chunks if possible, so that human review does not become the bottleneck.
| or for language translation purposes. **Such uses must always be declared.** | ||
| * Humans are always responsible for AI output. | ||
| * Contributors must be transparent and honest; this includes that AI-use must always be declared. | ||
| * In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs). |
There was a problem hiding this comment.
Yeah, that could be useful for the issue tracker at least. I can see a few cases where automation might play a role also on opening issues for example.
| * In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs). | ||
| * Human time is precious. Core Developers can always decide that a contribution does not justify the review effort and close it. | ||
| * The project benefits most from expertise, not just code/documentation. | ||
| * Scientific code has to be correct. If no human can assess or validate the code then we cannot include it. |
There was a problem hiding this comment.
| * Scientific code has to be correct. If no human can assess or validate the code then we cannot include it. | |
| * Scientific code has to be correct. If no human can assess or validate the code then we cannot include it. This includes contributions that provide significant speedups at the price of code obfuscation. |
Or something similar? In my experience this is quite a common case that might be worth singling out.
There was a problem hiding this comment.
[nit] I like Rocco's suggestion, but would maybe change that from "This includes" to "For example".
There was a problem hiding this comment.
That’s very good to include. I just would try to move it down into the policy details section and try to keep the foundations section fairly tight.
| * Human time is precious. Core Developers can always decide that a contribution does not justify the review effort and close it. | ||
| * The project benefits most from expertise, not just code/documentation. | ||
| * Scientific code has to be correct. If no human can assess or validate the code then we cannot include it. | ||
| * Best practice norms, e.g. software contribution standards set by the project, must always be followed. |
There was a problem hiding this comment.
| * Best practice norms, e.g. software contribution standards set by the project, must always be followed. | |
| * Best practice norms, e.g. software contribution standards set by the project, must always be followed. Some of these norms are collected in `AGENTS.md`. |
| or for language translation purposes. **Such uses must always be declared.** | ||
| * Humans are always responsible for AI output. | ||
| * Contributors must be transparent and honest; this includes that AI-use must always be declared. | ||
| * In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs). |
There was a problem hiding this comment.
I see that "limited exceptions" is already mentioned below, so definitely good to add it here too.
|
|
||
| Please understand that reviewing capacity is very limited for the project, so large PRs which appear to not have the requisite understanding might not get reviewed, and eventually closed or redirected. | ||
| Understanding from authors about what code they are contributing and how it fits into the larger picture is crucial; for new features in particular, we are looking for domain expertise. | ||
| If reviewers feel there is a lack of understanding from looking at the code, PR descriptions, or just general interactions with a contributor, we reserve the right to close the PR to save time and resources. |
There was a problem hiding this comment.
I agree it sounds a bit repetitive, but I think this is a very important point. We always tried to be a inclusive and welcoming community (and we still try hard!), so it make sense to stress these points since PR rejection might be taken badly in some cases (maybe more by the AI agents themselves than the human contributors.... It's important to stress we are welcoming and inclusive and willing to give our time to new contributors when there is genuine human effort behind, not just waste time interacting with AI through a human proxy.
| Assisted-by: ChatGPT:GPT-6.1-Sol-Light | ||
|
|
||
| Assisted-by: Claude:claude-opus-5-5 Cursor | ||
| ``` |
There was a problem hiding this comment.
I don't feel strongly either way. But maybe it is a bit of an annoyance for us to check and make sure it is included in the squash-merge, so in the view that our time is limited maybe it is worth dropping and only requiring disclosure in the PR description.
| Any failures to comply with this policy should be reported to the MDAnalysis core developers through | ||
| our [standard communications channels](https://www.mdanalysis.org/pages/community/#ask-questions--get-help) or email to mdanalysis@numfocus.org . | ||
| The core developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions. | ||
| The Core Developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions. |
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
…s into update-ai-policy-v2
…s into update-ai-policy-v2
…s into update-ai-policy-v2
Changes made in this Pull Request:
LLM / AI generated code disclosure
AI_POLICY.md.LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution: no
PR Checklist
package/CHANGELOGfile updated?package/AUTHORS? (If it is not, add it!)Developers Certificate of Origin
I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.